// Copyright (c) 2011 Dmitry Chestnykh
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package main

import (
	"fmt"
	"bufio"
	"os"
	"github.com/dchest/stemmer/porter2"
)

func readLine() {
	r := bufio.NewReader(os.Stdin) 
    line, err := r.ReadString('\n') 
    for err == nil { 
    	line = line[:len(line)-1]
    	//fmt.Println(line) 
    	fmt.Println(porter2.Stemmer.Stem(line))
        line, err = r.ReadString('\n') 
	} 
    
    if err != os.EOF { 
    	fmt.Println(err) 
        return 
	} 
}


func main() {
	var s string
	st := porter2.Stemmer
	for i:=0;i<1000000; i++ {
		s = st.Stem("continuously")
	}
	fmt.Println(s)
	
}